package com.bawei.module_main.model

import java.io.Serializable

data class AdModel(
    val dataId: Any,
    val id: Int,
    val imageUrl: String,
    val name: String,
    val productType: String,
    val type: String,
    val url: String
):Serializable{
    fun jumpNativeGoods(): Boolean = type == "in"

    fun canJumpWeb(): Boolean = type == "out" && !url.isNullOrEmpty()
}